import time
import calendar
# t = time.time()
# print(t)
tt = time.localtime()
print(tt)
ttt = time.asctime(tt)
print(ttt)
#格式化时间
print(time.strftime("%Y-%m-%d %H:%M:%S",time.localtime()))
print(time.strftime("%A-%B-%d %H:%M:%S %Y",time.localtime()))
# #转化成时间出
# qq = "Sunday May 10 11:33:57 2020"
# print(time.mktime(time.strptime(qq,"%A %B %d %H:%M:%S %Y")))
#
# #2020年3月的日历
# pp = calendar.month(2020,5)
# print(pp)